package com.hailin.pigapi.service.pigAuth;

import com.hailin.pigapi.common.Result;
import com.hailin.pigapi.request.auth.UserInfoRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("pig-auth")
public interface PigAuthService {

    @PostMapping("/pigAuth/login")
    Result login(@ModelAttribute UserInfoRequest userInfoRequest);

}
